package net.zigin.nhi.could.waste.util;

import java.util.regex.Pattern;

public class RegExpUtil {

    public final static String EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
    public final static String ID_CARD = "^\\d{8,18}|[0-9x]{8,18}|[0-9X]{8,18}?$";

    public static boolean match(String content, String pattern) {
        return Pattern.matches(pattern, content);
    }

}
